import api from './apis';
import { post, get, postFile, postJson } from '../request';


export function findVertex (params) {
  return postJson(api.findVertex, params, true);
}

export function cosUpload (params, needSecret) {
  return postFile(api.cosUpload, params, needSecret);
}
export function findCompanyAtlas (params) {
  return postJson(api.findCompanyAtlas, params, true);
}

export function findChildrenAtlas (params) {
  return postJson(api.findChildrenAtlas, params, true);
}

export function getOrderedBanks (params) {
  return postJson(api.getOrderedBanks, params, true);
}

export function getCorpNames (params) {
  return postJson(api.getCorpNames, params, true);
}

export function insertFinance (params) {
  return postJson(api.insertFinance, params, true);
}

export function insertQuestion (params) {
  return postJson(api.insertQuestion, params, true);
}

export function getQuestionByrzId (params) {
  return postJson(api.getQuestionByrzId, params, true);
}

export default {
  findVertex,
  cosUpload,
  findCompanyAtlas,
  findChildrenAtlas,
  getOrderedBanks,
  getCorpNames,
  insertFinance,
  insertQuestion,
  getQuestionByrzId,
};
